from django.db import models

# Create your models here.
class User(models.Model):
    user = models.CharField(verbose_name='账号',max_length=30)
    password = models.CharField(verbose_name='密码', max_length=30)
    phone = models.CharField(verbose_name='手机号', max_length=11)

    def __str__(self):
        return self.user

    class Meta:
        db_table = 'user'
        verbose_name_plural = "账号表"


class Login(models.Model):
    username=models.CharField(max_length=20,verbose_name='用户名')
    password=models.CharField(max_length=20,verbose_name='密码')

    class Meta:
        db_table='login'
        verbose_name_plural='登录表'
    def __str__(self):
        return self.username